package com.scorpio.goods.service;

import com.scorpio.appuser.domain.AppUserEntity;
import com.scorpio.goods.domain.GoodsEntity;
import com.scorpio.goods.dto.GoodsItemDTO;
import com.scorpio.goods.dto.GoodsDetailsDTO;
import com.scorpio.goods.dto.GoodsSkuSpecDTO;
import com.scorpio.goods.vo.GoodsVo;

import java.util.List;

public interface GoodsService {

    GoodsEntity selectById(Long id);

    //查询商品SKU
    List<GoodsSkuSpecDTO> skuList(Long goodsId);

    List<GoodsItemDTO> goodsList(GoodsVo vo);

    GoodsDetailsDTO details(Long id);


    int updateInventory(Long id, Integer change);
}
